home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / text / misc / MSWordView_src.lha / mswordview / configure < prev    next >
Text File  |  1998-12-02  |  60KB  |  1,991 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-zlib=\$dir        use system libz in \$dir"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. mandir='${prefix}/man'
  50.  
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  54. # Maximum number of lines to put in a shell here document.
  55. ac_max_here_lines=12
  56.  
  57. ac_prev=
  58. for ac_option
  59. do
  60.  
  61.   # If the previous option needs an argument, assign it.
  62.   if test -n "$ac_prev"; then
  63.     eval "$ac_prev=\$ac_option"
  64.     ac_prev=
  65.     continue
  66.   fi
  67.  
  68.   case "$ac_option" in
  69.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  70.   *) ac_optarg= ;;
  71.   esac
  72.  
  73.   # Accept the important Cygnus configure options, so we can diagnose typos.
  74.  
  75.   case "$ac_option" in
  76.  
  77.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  78.     ac_prev=bindir ;;
  79.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  80.     bindir="$ac_optarg" ;;
  81.  
  82.   -build | --build | --buil | --bui | --bu)
  83.     ac_prev=build ;;
  84.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  85.     build="$ac_optarg" ;;
  86.  
  87.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  88.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89.     ac_prev=cache_file ;;
  90.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92.     cache_file="$ac_optarg" ;;
  93.  
  94.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  95.     ac_prev=datadir ;;
  96.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  97.   | --da=*)
  98.     datadir="$ac_optarg" ;;
  99.  
  100.   -disable-* | --disable-*)
  101.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  102.     # Reject names that are not valid shell variable names.
  103.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  104.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105.     fi
  106.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107.     eval "enable_${ac_feature}=no" ;;
  108.  
  109.   -enable-* | --enable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     case "$ac_option" in
  117.       *=*) ;;
  118.       *) ac_optarg=yes ;;
  119.     esac
  120.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  121.  
  122.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  123.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  124.   | --exec | --exe | --ex)
  125.     ac_prev=exec_prefix ;;
  126.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  127.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  128.   | --exec=* | --exe=* | --ex=*)
  129.     exec_prefix="$ac_optarg" ;;
  130.  
  131.   -gas | --gas | --ga | --g)
  132.     # Obsolete; use --with-gas.
  133.     with_gas=yes ;;
  134.  
  135.   -help | --help | --hel | --he)
  136.     # Omit some internal or obsolete options to make the list less imposing.
  137.     # This message is too long to be a string in the A/UX 3.1 sh.
  138.     cat << EOF
  139. Usage: configure [options] [host]
  140. Options: [defaults in brackets after descriptions]
  141. Configuration:
  142.   --cache-file=FILE       cache test results in FILE
  143.   --help                  print this message
  144.   --no-create             do not create output files
  145.   --quiet, --silent       do not print \`checking...' messages
  146.   --version               print the version of autoconf that created configure
  147. Directory and file names:
  148.   --prefix=PREFIX         install architecture-independent files in PREFIX
  149.                           [$ac_default_prefix]
  150.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  151.                           [same as prefix]
  152.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  153.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  154.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  155.   --datadir=DIR           read-only architecture-independent data in DIR
  156.                           [PREFIX/share]
  157.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  158.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  159.                           [PREFIX/com]
  160.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  161.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  162.   --includedir=DIR        C header files in DIR [PREFIX/include]
  163.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  164.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  165.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  166.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  167.   --program-prefix=PREFIX prepend PREFIX to installed program names
  168.   --program-suffix=SUFFIX append SUFFIX to installed program names
  169.   --program-transform-name=PROGRAM
  170.                           run sed PROGRAM on installed program names
  171. EOF
  172.     cat << EOF
  173. Host type:
  174.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  175.   --host=HOST             configure for HOST [guessed]
  176.   --target=TARGET         configure for TARGET [TARGET=HOST]
  177. Features and packages:
  178.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  179.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  180.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  181.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  182.   --x-includes=DIR        X include files are in DIR
  183.   --x-libraries=DIR       X library files are in DIR
  184. EOF
  185.     if test -n "$ac_help"; then
  186.       echo "--enable and --with options recognized:$ac_help"
  187.     fi
  188.     exit 0 ;;
  189.  
  190.   -host | --host | --hos | --ho)
  191.     ac_prev=host ;;
  192.   -host=* | --host=* | --hos=* | --ho=*)
  193.     host="$ac_optarg" ;;
  194.  
  195.   -includedir | --includedir | --includedi | --included | --include \
  196.   | --includ | --inclu | --incl | --inc)
  197.     ac_prev=includedir ;;
  198.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  199.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  200.     includedir="$ac_optarg" ;;
  201.  
  202.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  203.     ac_prev=infodir ;;
  204.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  205.     infodir="$ac_optarg" ;;
  206.  
  207.   -libdir | --libdir | --libdi | --libd)
  208.     ac_prev=libdir ;;
  209.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  210.     libdir="$ac_optarg" ;;
  211.  
  212.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  213.   | --libexe | --libex | --libe)
  214.     ac_prev=libexecdir ;;
  215.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  216.   | --libexe=* | --libex=* | --libe=*)
  217.     libexecdir="$ac_optarg" ;;
  218.  
  219.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  220.   | --localstate | --localstat | --localsta | --localst \
  221.   | --locals | --local | --loca | --loc | --lo)
  222.     ac_prev=localstatedir ;;
  223.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  224.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  225.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  226.     localstatedir="$ac_optarg" ;;
  227.  
  228.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  229.     ac_prev=mandir ;;
  230.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  231.     mandir="$ac_optarg" ;;
  232.  
  233.   -nfp | --nfp | --nf)
  234.     # Obsolete; use --without-fp.
  235.     with_fp=no ;;
  236.  
  237.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  238.   | --no-cr | --no-c)
  239.     no_create=yes ;;
  240.  
  241.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  242.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  243.     no_recursion=yes ;;
  244.  
  245.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  246.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  247.   | --oldin | --oldi | --old | --ol | --o)
  248.     ac_prev=oldincludedir ;;
  249.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  250.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  251.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  252.     oldincludedir="$ac_optarg" ;;
  253.  
  254.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  255.     ac_prev=prefix ;;
  256.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  257.     prefix="$ac_optarg" ;;
  258.  
  259.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  260.   | --program-pre | --program-pr | --program-p)
  261.     ac_prev=program_prefix ;;
  262.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  263.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  264.     program_prefix="$ac_optarg" ;;
  265.  
  266.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  267.   | --program-suf | --program-su | --program-s)
  268.     ac_prev=program_suffix ;;
  269.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  270.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  271.     program_suffix="$ac_optarg" ;;
  272.  
  273.   -program-transform-name | --program-transform-name \
  274.   | --program-transform-nam | --program-transform-na \
  275.   | --program-transform-n | --program-transform- \
  276.   | --program-transform | --program-transfor \
  277.   | --program-transfo | --program-transf \
  278.   | --program-trans | --program-tran \
  279.   | --progr-tra | --program-tr | --program-t)
  280.     ac_prev=program_transform_name ;;
  281.   -program-transform-name=* | --program-transform-name=* \
  282.   | --program-transform-nam=* | --program-transform-na=* \
  283.   | --program-transform-n=* | --program-transform-=* \
  284.   | --program-transform=* | --program-transfor=* \
  285.   | --program-transfo=* | --program-transf=* \
  286.   | --program-trans=* | --program-tran=* \
  287.   | --progr-tra=* | --program-tr=* | --program-t=*)
  288.     program_transform_name="$ac_optarg" ;;
  289.  
  290.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  291.   | -silent | --silent | --silen | --sile | --sil)
  292.     silent=yes ;;
  293.  
  294.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  295.     ac_prev=sbindir ;;
  296.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  297.   | --sbi=* | --sb=*)
  298.     sbindir="$ac_optarg" ;;
  299.  
  300.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  301.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  302.   | --sharedst | --shareds | --shared | --share | --shar \
  303.   | --sha | --sh)
  304.     ac_prev=sharedstatedir ;;
  305.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  306.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  307.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  308.   | --sha=* | --sh=*)
  309.     sharedstatedir="$ac_optarg" ;;
  310.  
  311.   -site | --site | --sit)
  312.     ac_prev=site ;;
  313.   -site=* | --site=* | --sit=*)
  314.     site="$ac_optarg" ;;
  315.  
  316.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  317.     ac_prev=srcdir ;;
  318.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  319.     srcdir="$ac_optarg" ;;
  320.  
  321.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  322.   | --syscon | --sysco | --sysc | --sys | --sy)
  323.     ac_prev=sysconfdir ;;
  324.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  325.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  326.     sysconfdir="$ac_optarg" ;;
  327.  
  328.   -target | --target | --targe | --targ | --tar | --ta | --t)
  329.     ac_prev=target ;;
  330.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  331.     target="$ac_optarg" ;;
  332.  
  333.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  334.     verbose=yes ;;
  335.  
  336.   -version | --version | --versio | --versi | --vers)
  337.     echo "configure generated by autoconf version 2.12"
  338.     exit 0 ;;
  339.  
  340.   -with-* | --with-*)
  341.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  342.     # Reject names that are not valid shell variable names.
  343.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  344.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  345.     fi
  346.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  347.     case "$ac_option" in
  348.       *=*) ;;
  349.       *) ac_optarg=yes ;;
  350.     esac
  351.     eval "with_${ac_package}='$ac_optarg'" ;;
  352.  
  353.   -without-* | --without-*)
  354.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  355.     # Reject names that are not valid shell variable names.
  356.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  357.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  358.     fi
  359.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  360.     eval "with_${ac_package}=no" ;;
  361.  
  362.   --x)
  363.     # Obsolete; use --with-x.
  364.     with_x=yes ;;
  365.  
  366.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  367.   | --x-incl | --x-inc | --x-in | --x-i)
  368.     ac_prev=x_includes ;;
  369.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  370.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  371.     x_includes="$ac_optarg" ;;
  372.  
  373.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  374.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  375.     ac_prev=x_libraries ;;
  376.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  377.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  378.     x_libraries="$ac_optarg" ;;
  379.  
  380.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  381.     ;;
  382.  
  383.   *)
  384.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  385.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  386.     fi
  387.     if test "x$nonopt" != xNONE; then
  388.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  389.     fi
  390.     nonopt="$ac_option"
  391.     ;;
  392.  
  393.   esac
  394. done
  395.  
  396. if test -n "$ac_prev"; then
  397.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  398. fi
  399.  
  400. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  401.  
  402. # File descriptor usage:
  403. # 0 standard input
  404. # 1 file creation
  405. # 2 errors and warnings
  406. # 3 some systems may open it to /dev/tty
  407. # 4 used on the Kubota Titan
  408. # 6 checking for... messages and results
  409. # 5 compiler messages saved in config.log
  410. if test "$silent" = yes; then
  411.   exec 6>/dev/null
  412. else
  413.   exec 6>&1
  414. fi
  415. exec 5>./config.log
  416.  
  417. echo "\
  418. This file contains any messages produced by compilers while
  419. running configure, to aid debugging if configure makes a mistake.
  420. " 1>&5
  421.  
  422. # Strip out --no-create and --no-recursion so they do not pile up.
  423. # Also quote any args containing shell metacharacters.
  424. ac_configure_args=
  425. for ac_arg
  426. do
  427.   case "$ac_arg" in
  428.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  429.   | --no-cr | --no-c) ;;
  430.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  432.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  433.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  434.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  435.   esac
  436. done
  437.  
  438. # NLS nuisances.
  439. # Only set these to C if already set.  These must not be set unconditionally
  440. # because not all systems understand e.g. LANG=C (notably SCO).
  441. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  442. # Non-C LC_CTYPE values break the ctype check.
  443. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  444. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  445. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  446. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  447.  
  448. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  449. rm -rf conftest* confdefs.h
  450. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  451. echo > confdefs.h
  452.  
  453. # A filename unique to this package, relative to the directory that
  454. # configure is in, which we can look for to find out if srcdir is correct.
  455. ac_unique_file=mswordview.c
  456.  
  457. # Find the source files, if location was not specified.
  458. if test -z "$srcdir"; then
  459.   ac_srcdir_defaulted=yes
  460.   # Try the directory containing this script, then its parent.
  461.   ac_prog=$0
  462.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  463.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  464.   srcdir=$ac_confdir
  465.   if test ! -r $srcdir/$ac_unique_file; then
  466.     srcdir=..
  467.   fi
  468. else
  469.   ac_srcdir_defaulted=no
  470. fi
  471. if test ! -r $srcdir/$ac_unique_file; then
  472.   if test "$ac_srcdir_defaulted" = yes; then
  473.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  474.   else
  475.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  476.   fi
  477. fi
  478. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  479.  
  480. # Prefer explicitly selected file to automatically selected ones.
  481. if test -z "$CONFIG_SITE"; then
  482.   if test "x$prefix" != xNONE; then
  483.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  484.   else
  485.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  486.   fi
  487. fi
  488. for ac_site_file in $CONFIG_SITE; do
  489.   if test -r "$ac_site_file"; then
  490.     echo "loading site script $ac_site_file"
  491.     . "$ac_site_file"
  492.   fi
  493. done
  494.  
  495. if test -r "$cache_file"; then
  496.   echo "loading cache $cache_file"
  497.   . $cache_file
  498. else
  499.   echo "creating cache $cache_file"
  500.   > $cache_file
  501. fi
  502.  
  503. ac_ext=c
  504. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  505. ac_cpp='$CPP $CPPFLAGS'
  506. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  507. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  508. cross_compiling=$ac_cv_prog_cc_cross
  509.  
  510. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  511.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  512.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  513.     ac_n= ac_c='
  514. ' ac_t='    '
  515.   else
  516.     ac_n=-n ac_c= ac_t=
  517.   fi
  518. else
  519.   ac_n= ac_c='\c' ac_t=
  520. fi
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529. # Extract the first word of "gcc", so it can be a program name with args.
  530. set dummy gcc; ac_word=$2
  531. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  532. echo "configure:533: checking for $ac_word" >&5
  533. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  534.   echo $ac_n "(cached) $ac_c" 1>&6
  535. else
  536.   if test -n "$CC"; then
  537.   ac_cv_prog_CC="$CC" # Let the user override the test.
  538. else
  539.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  540.   for ac_dir in $PATH; do
  541.     test -z "$ac_dir" && ac_dir=.
  542.     if test -f $ac_dir/$ac_word; then
  543.       ac_cv_prog_CC="gcc"
  544.       break
  545.     fi
  546.   done
  547.   IFS="$ac_save_ifs"
  548. fi
  549. fi
  550. CC="$ac_cv_prog_CC"
  551. if test -n "$CC"; then
  552.   echo "$ac_t""$CC" 1>&6
  553. else
  554.   echo "$ac_t""no" 1>&6
  555. fi
  556.  
  557. if test -z "$CC"; then
  558.   # Extract the first word of "cc", so it can be a program name with args.
  559. set dummy cc; ac_word=$2
  560. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  561. echo "configure:562: checking for $ac_word" >&5
  562. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  563.   echo $ac_n "(cached) $ac_c" 1>&6
  564. else
  565.   if test -n "$CC"; then
  566.   ac_cv_prog_CC="$CC" # Let the user override the test.
  567. else
  568.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  569.   ac_prog_rejected=no
  570.   for ac_dir in $PATH; do
  571.     test -z "$ac_dir" && ac_dir=.
  572.     if test -f $ac_dir/$ac_word; then
  573.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  574.         ac_prog_rejected=yes
  575.     continue
  576.       fi
  577.       ac_cv_prog_CC="cc"
  578.       break
  579.     fi
  580.   done
  581.   IFS="$ac_save_ifs"
  582. if test $ac_prog_rejected = yes; then
  583.   # We found a bogon in the path, so make sure we never use it.
  584.   set dummy $ac_cv_prog_CC
  585.   shift
  586.   if test $# -gt 0; then
  587.     # We chose a different compiler from the bogus one.
  588.     # However, it has the same basename, so the bogon will be chosen
  589.     # first if we set CC to just the basename; use the full file name.
  590.     shift
  591.     set dummy "$ac_dir/$ac_word" "$@"
  592.     shift
  593.     ac_cv_prog_CC="$@"
  594.   fi
  595. fi
  596. fi
  597. fi
  598. CC="$ac_cv_prog_CC"
  599. if test -n "$CC"; then
  600.   echo "$ac_t""$CC" 1>&6
  601. else
  602.   echo "$ac_t""no" 1>&6
  603. fi
  604.  
  605.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  606. fi
  607.  
  608. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  609. echo "configure:610: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  610.  
  611. ac_ext=c
  612. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  613. ac_cpp='$CPP $CPPFLAGS'
  614. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  615. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  616. cross_compiling=$ac_cv_prog_cc_cross
  617.  
  618. cat > conftest.$ac_ext <<EOF
  619. #line 620 "configure"
  620. #include "confdefs.h"
  621. main(){return(0);}
  622. EOF
  623. if { (eval echo configure:624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  624.   ac_cv_prog_cc_works=yes
  625.   # If we can't run a trivial program, we are probably using a cross compiler.
  626.   if (./conftest; exit) 2>/dev/null; then
  627.     ac_cv_prog_cc_cross=no
  628.   else
  629.     ac_cv_prog_cc_cross=yes
  630.   fi
  631. else
  632.   echo "configure: failed program was:" >&5
  633.   cat conftest.$ac_ext >&5
  634.   ac_cv_prog_cc_works=no
  635. fi
  636. rm -fr conftest*
  637.  
  638. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  639. if test $ac_cv_prog_cc_works = no; then
  640.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  641. fi
  642. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  643. echo "configure:644: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  644. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  645. cross_compiling=$ac_cv_prog_cc_cross
  646.  
  647. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  648. echo "configure:649: checking whether we are using GNU C" >&5
  649. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  650.   echo $ac_n "(cached) $ac_c" 1>&6
  651. else
  652.   cat > conftest.c <<EOF
  653. #ifdef __GNUC__
  654.   yes;
  655. #endif
  656. EOF
  657. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  658.   ac_cv_prog_gcc=yes
  659. else
  660.   ac_cv_prog_gcc=no
  661. fi
  662. fi
  663.  
  664. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  665.  
  666. if test $ac_cv_prog_gcc = yes; then
  667.   GCC=yes
  668.   ac_test_CFLAGS="${CFLAGS+set}"
  669.   ac_save_CFLAGS="$CFLAGS"
  670.   CFLAGS=
  671.   if test "$ac_test_CFLAGS" = set; then
  672.     CFLAGS="$ac_save_CFLAGS"
  673.   else
  674.     CFLAGS="-O2"
  675.   fi
  676. else
  677.   GCC=
  678.   test "${CFLAGS+set}" = set 
  679. fi
  680.  
  681. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  682. echo "configure:683: checking whether ${MAKE-make} sets \${MAKE}" >&5
  683. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  684. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  685.   echo $ac_n "(cached) $ac_c" 1>&6
  686. else
  687.   cat > conftestmake <<\EOF
  688. all:
  689.     @echo 'ac_maketemp="${MAKE}"'
  690. EOF
  691. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  692. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  693. if test -n "$ac_maketemp"; then
  694.   eval ac_cv_prog_make_${ac_make}_set=yes
  695. else
  696.   eval ac_cv_prog_make_${ac_make}_set=no
  697. fi
  698. rm -f conftestmake
  699. fi
  700. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  701.   echo "$ac_t""yes" 1>&6
  702.   SET_MAKE=
  703. else
  704.   echo "$ac_t""no" 1>&6
  705.   SET_MAKE="MAKE=${MAKE-make}"
  706. fi
  707.  
  708. ac_aux_dir=
  709. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  710.   if test -f $ac_dir/install-sh; then
  711.     ac_aux_dir=$ac_dir
  712.     ac_install_sh="$ac_aux_dir/install-sh -c"
  713.     break
  714.   elif test -f $ac_dir/install.sh; then
  715.     ac_aux_dir=$ac_dir
  716.     ac_install_sh="$ac_aux_dir/install.sh -c"
  717.     break
  718.   fi
  719. done
  720. if test -z "$ac_aux_dir"; then
  721.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  722. fi
  723. ac_config_guess=$ac_aux_dir/config.guess
  724. ac_config_sub=$ac_aux_dir/config.sub
  725. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  726.  
  727. # Find a good install program.  We prefer a C program (faster),
  728. # so one script is as good as another.  But avoid the broken or
  729. # incompatible versions:
  730. # SysV /etc/install, /usr/sbin/install
  731. # SunOS /usr/etc/install
  732. # IRIX /sbin/install
  733. # AIX /bin/install
  734. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  735. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  736. # ./install, which can be erroneously created by make from ./install.sh.
  737. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  738. echo "configure:739: checking for a BSD compatible install" >&5
  739. if test -z "$INSTALL"; then
  740. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  741.   echo $ac_n "(cached) $ac_c" 1>&6
  742. else
  743.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  744.   for ac_dir in $PATH; do
  745.     # Account for people who put trailing slashes in PATH elements.
  746.     case "$ac_dir/" in
  747.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  748.     *)
  749.       # OSF1 and SCO ODT 3.0 have their own names for install.
  750.       for ac_prog in ginstall installbsd scoinst install; do
  751.         if test -f $ac_dir/$ac_prog; then
  752.       if test $ac_prog = install &&
  753.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  754.         # AIX install.  It has an incompatible calling convention.
  755.         # OSF/1 installbsd also uses dspmsg, but is usable.
  756.         :
  757.       else
  758.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  759.         break 2
  760.       fi
  761.     fi
  762.       done
  763.       ;;
  764.     esac
  765.   done
  766.   IFS="$ac_save_IFS"
  767.  
  768. fi
  769.   if test "${ac_cv_path_install+set}" = set; then
  770.     INSTALL="$ac_cv_path_install"
  771.   else
  772.     # As a last resort, use the slow shell script.  We don't cache a
  773.     # path for INSTALL within a source directory, because that will
  774.     # break other packages using the cache if that directory is
  775.     # removed, or if the path is relative.
  776.     INSTALL="$ac_install_sh"
  777.   fi
  778. fi
  779. echo "$ac_t""$INSTALL" 1>&6
  780.  
  781. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  782. # It thinks the first close brace ends the variable substitution.
  783. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  784.  
  785. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  786.  
  787.  
  788. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  789. echo "configure:790: checking how to run the C preprocessor" >&5
  790. # On Suns, sometimes $CPP names a directory.
  791. if test -n "$CPP" && test -d "$CPP"; then
  792.   CPP=
  793. fi
  794. if test -z "$CPP"; then
  795. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  796.   echo $ac_n "(cached) $ac_c" 1>&6
  797. else
  798.     # This must be in double quotes, not single quotes, because CPP may get
  799.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  800.   CPP="${CC-cc} -E"
  801.   # On the NeXT, cc -E runs the code through the compiler's parser,
  802.   # not just through cpp.
  803.   cat > conftest.$ac_ext <<EOF
  804. #line 805 "configure"
  805. #include "confdefs.h"
  806. #include <assert.h>
  807. Syntax Error
  808. EOF
  809. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  810. { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  811. ac_err=`grep -v '^ *+' conftest.out`
  812. if test -z "$ac_err"; then
  813.   :
  814. else
  815.   echo "$ac_err" >&5
  816.   echo "configure: failed program was:" >&5
  817.   cat conftest.$ac_ext >&5
  818.   rm -rf conftest*
  819.   CPP="${CC-cc} -E -traditional-cpp"
  820.   cat > conftest.$ac_ext <<EOF
  821. #line 822 "configure"
  822. #include "confdefs.h"
  823. #include <assert.h>
  824. Syntax Error
  825. EOF
  826. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  827. { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  828. ac_err=`grep -v '^ *+' conftest.out`
  829. if test -z "$ac_err"; then
  830.   :
  831. else
  832.   echo "$ac_err" >&5
  833.   echo "configure: failed program was:" >&5
  834.   cat conftest.$ac_ext >&5
  835.   rm -rf conftest*
  836.   CPP=/lib/cpp
  837. fi
  838. rm -f conftest*
  839. fi
  840. rm -f conftest*
  841.   ac_cv_prog_CPP="$CPP"
  842. fi
  843.   CPP="$ac_cv_prog_CPP"
  844. else
  845.   ac_cv_prog_CPP="$CPP"
  846. fi
  847. echo "$ac_t""$CPP" 1>&6
  848.  
  849. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  850. echo "configure:851: checking for ANSI C header files" >&5
  851. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  852.   echo $ac_n "(cached) $ac_c" 1>&6
  853. else
  854.   cat > conftest.$ac_ext <<EOF
  855. #line 856 "configure"
  856. #include "confdefs.h"
  857. #include <stdlib.h>
  858. #include <stdarg.h>
  859. #include <string.h>
  860. #include <float.h>
  861. EOF
  862. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  863. { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  864. ac_err=`grep -v '^ *+' conftest.out`
  865. if test -z "$ac_err"; then
  866.   rm -rf conftest*
  867.   ac_cv_header_stdc=yes
  868. else
  869.   echo "$ac_err" >&5
  870.   echo "configure: failed program was:" >&5
  871.   cat conftest.$ac_ext >&5
  872.   rm -rf conftest*
  873.   ac_cv_header_stdc=no
  874. fi
  875. rm -f conftest*
  876.  
  877. if test $ac_cv_header_stdc = yes; then
  878.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  879. cat > conftest.$ac_ext <<EOF
  880. #line 881 "configure"
  881. #include "confdefs.h"
  882. #include <string.h>
  883. EOF
  884. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  885.   egrep "memchr" >/dev/null 2>&1; then
  886.   :
  887. else
  888.   rm -rf conftest*
  889.   ac_cv_header_stdc=no
  890. fi
  891. rm -f conftest*
  892.  
  893. fi
  894.  
  895. if test $ac_cv_header_stdc = yes; then
  896.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  897. cat > conftest.$ac_ext <<EOF
  898. #line 899 "configure"
  899. #include "confdefs.h"
  900. #include <stdlib.h>
  901. EOF
  902. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  903.   egrep "free" >/dev/null 2>&1; then
  904.   :
  905. else
  906.   rm -rf conftest*
  907.   ac_cv_header_stdc=no
  908. fi
  909. rm -f conftest*
  910.  
  911. fi
  912.  
  913. if test $ac_cv_header_stdc = yes; then
  914.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  915. if test "$cross_compiling" = yes; then
  916.   :
  917. else
  918.   cat > conftest.$ac_ext <<EOF
  919. #line 920 "configure"
  920. #include "confdefs.h"
  921. #include <ctype.h>
  922. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  923. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  924. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  925. int main () { int i; for (i = 0; i < 256; i++)
  926. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  927. exit (0); }
  928.  
  929. EOF
  930. if { (eval echo configure:931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  931. then
  932.   :
  933. else
  934.   echo "configure: failed program was:" >&5
  935.   cat conftest.$ac_ext >&5
  936.   rm -fr conftest*
  937.   ac_cv_header_stdc=no
  938. fi
  939. rm -fr conftest*
  940. fi
  941.  
  942. fi
  943. fi
  944.  
  945. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  946. if test $ac_cv_header_stdc = yes; then
  947.   cat >> confdefs.h <<\EOF
  948. #define STDC_HEADERS 1
  949. EOF
  950.  
  951. fi
  952.  
  953. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  954. echo "configure:955: checking for sys/wait.h that is POSIX.1 compatible" >&5
  955. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  956.   echo $ac_n "(cached) $ac_c" 1>&6
  957. else
  958.   cat > conftest.$ac_ext <<EOF
  959. #line 960 "configure"
  960. #include "confdefs.h"
  961. #include <sys/types.h>
  962. #include <sys/wait.h>
  963. #ifndef WEXITSTATUS
  964. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  965. #endif
  966. #ifndef WIFEXITED
  967. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  968. #endif
  969. int main() {
  970. int s;
  971. wait (&s);
  972. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  973. ; return 0; }
  974. EOF
  975. if { (eval echo configure:976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  976.   rm -rf conftest*
  977.   ac_cv_header_sys_wait_h=yes
  978. else
  979.   echo "configure: failed program was:" >&5
  980.   cat conftest.$ac_ext >&5
  981.   rm -rf conftest*
  982.   ac_cv_header_sys_wait_h=no
  983. fi
  984. rm -f conftest*
  985. fi
  986.  
  987. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  988. if test $ac_cv_header_sys_wait_h = yes; then
  989.   cat >> confdefs.h <<\EOF
  990. #define HAVE_SYS_WAIT_H 1
  991. EOF
  992.  
  993. fi
  994.  
  995. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  996. echo "configure:997: checking return type of signal handlers" >&5
  997. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  998.   echo $ac_n "(cached) $ac_c" 1>&6
  999. else
  1000.   cat > conftest.$ac_ext <<EOF
  1001. #line 1002 "configure"
  1002. #include "confdefs.h"
  1003. #include <sys/types.h>
  1004. #include <signal.h>
  1005. #ifdef signal
  1006. #undef signal
  1007. #endif
  1008. #ifdef __cplusplus
  1009. extern "C" void (*signal (int, void (*)(int)))(int);
  1010. #else
  1011. void (*signal ()) ();
  1012. #endif
  1013.  
  1014. int main() {
  1015. int i;
  1016. ; return 0; }
  1017. EOF
  1018. if { (eval echo configure:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1019.   rm -rf conftest*
  1020.   ac_cv_type_signal=void
  1021. else
  1022.   echo "configure: failed program was:" >&5
  1023.   cat conftest.$ac_ext >&5
  1024.   rm -rf conftest*
  1025.   ac_cv_type_signal=int
  1026. fi
  1027. rm -f conftest*
  1028. fi
  1029.  
  1030. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1031. cat >> confdefs.h <<EOF
  1032. #define RETSIGTYPE $ac_cv_type_signal
  1033. EOF
  1034.  
  1035.  
  1036. echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
  1037. echo "configure:1038: checking for wait3 that fills in rusage" >&5
  1038. if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
  1039.   echo $ac_n "(cached) $ac_c" 1>&6
  1040. else
  1041.   if test "$cross_compiling" = yes; then
  1042.   ac_cv_func_wait3_rusage=no
  1043. else
  1044.   cat > conftest.$ac_ext <<EOF
  1045. #line 1046 "configure"
  1046. #include "confdefs.h"
  1047. #include <sys/types.h>
  1048. #include <sys/time.h>
  1049. #include <sys/resource.h>
  1050. #include <stdio.h>
  1051. /* HP-UX has wait3 but does not fill in rusage at all.  */
  1052. main() {
  1053.   struct rusage r;
  1054.   int i;
  1055.   /* Use a field that we can force nonzero --
  1056.      voluntary context switches.
  1057.      For systems like NeXT and OSF/1 that don't set it,
  1058.      also use the system CPU time.  And page faults (I/O) for Linux.  */
  1059.   r.ru_nvcsw = 0;
  1060.   r.ru_stime.tv_sec = 0;
  1061.   r.ru_stime.tv_usec = 0;
  1062.   r.ru_majflt = r.ru_minflt = 0;
  1063.   switch (fork()) {
  1064.   case 0: /* Child.  */
  1065.     sleep(1); /* Give up the CPU.  */
  1066.     _exit(0);
  1067.   case -1: _exit(0); /* What can we do?  */
  1068.   default: /* Parent.  */
  1069.     wait3(&i, 0, &r);
  1070.     sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
  1071.     exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
  1072.      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
  1073.   }
  1074. }
  1075. EOF
  1076. if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1077. then
  1078.   ac_cv_func_wait3_rusage=yes
  1079. else
  1080.   echo "configure: failed program was:" >&5
  1081.   cat conftest.$ac_ext >&5
  1082.   rm -fr conftest*
  1083.   ac_cv_func_wait3_rusage=no
  1084. fi
  1085. rm -fr conftest*
  1086. fi
  1087.  
  1088. fi
  1089.  
  1090. echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
  1091. if test $ac_cv_func_wait3_rusage = yes; then
  1092.   cat >> confdefs.h <<\EOF
  1093. #define HAVE_WAIT3 1
  1094. EOF
  1095.  
  1096. fi
  1097.  
  1098.  
  1099. for ac_hdr in fcntl.h sys/file.h sys/ioctl.h unistd.h
  1100. do
  1101. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1102. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1103. echo "configure:1104: checking for $ac_hdr" >&5
  1104. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1105.   echo $ac_n "(cached) $ac_c" 1>&6
  1106. else
  1107.   cat > conftest.$ac_ext <<EOF
  1108. #line 1109 "configure"
  1109. #include "confdefs.h"
  1110. #include <$ac_hdr>
  1111. EOF
  1112. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1113. { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1114. ac_err=`grep -v '^ *+' conftest.out`
  1115. if test -z "$ac_err"; then
  1116.   rm -rf conftest*
  1117.   eval "ac_cv_header_$ac_safe=yes"
  1118. else
  1119.   echo "$ac_err" >&5
  1120.   echo "configure: failed program was:" >&5
  1121.   cat conftest.$ac_ext >&5
  1122.   rm -rf conftest*
  1123.   eval "ac_cv_header_$ac_safe=no"
  1124. fi
  1125. rm -f conftest*
  1126. fi
  1127. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1128.   echo "$ac_t""yes" 1>&6
  1129.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1130.   cat >> confdefs.h <<EOF
  1131. #define $ac_tr_hdr 1
  1132. EOF
  1133.  
  1134. else
  1135.   echo "$ac_t""no" 1>&6
  1136. fi
  1137. done
  1138.  
  1139. CFLAGS="$CFLAGS $X_CFLAGS"
  1140.  
  1141.  
  1142. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1143. echo "configure:1144: checking for working const" >&5
  1144. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1145.   echo $ac_n "(cached) $ac_c" 1>&6
  1146. else
  1147.   cat > conftest.$ac_ext <<EOF
  1148. #line 1149 "configure"
  1149. #include "confdefs.h"
  1150.  
  1151. int main() {
  1152.  
  1153. /* Ultrix mips cc rejects this.  */
  1154. typedef int charset[2]; const charset x;
  1155. /* SunOS 4.1.1 cc rejects this.  */
  1156. char const *const *ccp;
  1157. char **p;
  1158. /* NEC SVR4.0.2 mips cc rejects this.  */
  1159. struct point {int x, y;};
  1160. static struct point const zero = {0,0};
  1161. /* AIX XL C 1.02.0.0 rejects this.
  1162.    It does not let you subtract one const X* pointer from another in an arm
  1163.    of an if-expression whose if-part is not a constant expression */
  1164. const char *g = "string";
  1165. ccp = &g + (g ? g-g : 0);
  1166. /* HPUX 7.0 cc rejects these. */
  1167. ++ccp;
  1168. p = (char**) ccp;
  1169. ccp = (char const *const *) p;
  1170. { /* SCO 3.2v4 cc rejects this.  */
  1171.   char *t;
  1172.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1173.  
  1174.   *t++ = 0;
  1175. }
  1176. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1177.   int x[] = {25, 17};
  1178.   const int *foo = &x[0];
  1179.   ++foo;
  1180. }
  1181. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1182.   typedef const int *iptr;
  1183.   iptr p = 0;
  1184.   ++p;
  1185. }
  1186. { /* AIX XL C 1.02.0.0 rejects this saying
  1187.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1188.   struct s { int j; const int *ap[3]; };
  1189.   struct s *b; b->j = 5;
  1190. }
  1191. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1192.   const int foo = 10;
  1193. }
  1194.  
  1195. ; return 0; }
  1196. EOF
  1197. if { (eval echo configure:1198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1198.   rm -rf conftest*
  1199.   ac_cv_c_const=yes
  1200. else
  1201.   echo "configure: failed program was:" >&5
  1202.   cat conftest.$ac_ext >&5
  1203.   rm -rf conftest*
  1204.   ac_cv_c_const=no
  1205. fi
  1206. rm -f conftest*
  1207. fi
  1208.  
  1209. echo "$ac_t""$ac_cv_c_const" 1>&6
  1210. if test $ac_cv_c_const = no; then
  1211.   cat >> confdefs.h <<\EOF
  1212. #define const 
  1213. EOF
  1214.  
  1215. fi
  1216.  
  1217.  
  1218. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1219. echo "configure:1220: checking for pid_t" >&5
  1220. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1221.   echo $ac_n "(cached) $ac_c" 1>&6
  1222. else
  1223.   cat > conftest.$ac_ext <<EOF
  1224. #line 1225 "configure"
  1225. #include "confdefs.h"
  1226. #include <sys/types.h>
  1227. #if STDC_HEADERS
  1228. #include <stdlib.h>
  1229. #include <stddef.h>
  1230. #endif
  1231. EOF
  1232. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1233.   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1234.   rm -rf conftest*
  1235.   ac_cv_type_pid_t=yes
  1236. else
  1237.   rm -rf conftest*
  1238.   ac_cv_type_pid_t=no
  1239. fi
  1240. rm -f conftest*
  1241.  
  1242. fi
  1243. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1244. if test $ac_cv_type_pid_t = no; then
  1245.   cat >> confdefs.h <<\EOF
  1246. #define pid_t int
  1247. EOF
  1248.  
  1249. fi
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256. # Check whether --with-zlib or --without-zlib was given.
  1257. if test "${with_zlib+set}" = set; then
  1258.   withval="$with_zlib"
  1259.   ZLIB_DIR=$withval
  1260. fi
  1261.  
  1262.  
  1263. _SAVE_CFLAGS=$CFLAGS
  1264. _SAVE_LDFLAGS=$LDFLAGS
  1265. CFLAGS="-I${ZLIB_DIR}/include $CFLAGS"
  1266. LDFLAGS="-L${ZLIB_DIR}/lib $LDFLAGS"
  1267. if test "$ZLIB_DIR" = no; then
  1268.     SYSTEM_ZLIB=
  1269. else
  1270.     echo $ac_n "checking "for zlib.h"""... $ac_c" 1>&6
  1271. echo "configure:1272: checking "for zlib.h"" >&5
  1272.     cat > conftest.$ac_ext <<EOF
  1273. #line 1274 "configure"
  1274. #include "confdefs.h"
  1275. #include "zlib.h"
  1276. int main() {
  1277.  
  1278. ; return 0; }
  1279. EOF
  1280. if { (eval echo configure:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1281.   rm -rf conftest*
  1282.   result="yes" SYSTEM_ZLIB=1
  1283. else
  1284.   echo "configure: failed program was:" >&5
  1285.   cat conftest.$ac_ext >&5
  1286.   rm -rf conftest*
  1287.   result="no, WARNING mswordview will not be able to decompress wmf files" SYSTEM_ZLIB=0
  1288. fi
  1289. rm -f conftest*
  1290.     echo "$ac_t"""$result"" 1>&6 
  1291. fi  
  1292. if  test "$SYSTEM_ZLIB" = 1 ; then
  1293.     cat >> confdefs.h <<\EOF
  1294. #define SYSTEM_ZLIB 1
  1295. EOF
  1296.  
  1297.     echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
  1298. echo "configure:1299: checking for gzread in -lz" >&5
  1299. ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
  1300. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1301.   echo $ac_n "(cached) $ac_c" 1>&6
  1302. else
  1303.   ac_save_LIBS="$LIBS"
  1304. LIBS="-lz $ZLIB_LIBS $LIBS"
  1305. cat > conftest.$ac_ext <<EOF
  1306. #line 1307 "configure"
  1307. #include "confdefs.h"
  1308. /* Override any gcc2 internal prototype to avoid an error.  */
  1309. /* We use char because int might match the return type of a gcc2
  1310.     builtin and then its argument prototype would still apply.  */
  1311. char gzread();
  1312.  
  1313. int main() {
  1314. gzread()
  1315. ; return 0; }
  1316. EOF
  1317. if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1318.   rm -rf conftest*
  1319.   eval "ac_cv_lib_$ac_lib_var=yes"
  1320. else
  1321.   echo "configure: failed program was:" >&5
  1322.   cat conftest.$ac_ext >&5
  1323.   rm -rf conftest*
  1324.   eval "ac_cv_lib_$ac_lib_var=no"
  1325. fi
  1326. rm -f conftest*
  1327. LIBS="$ac_save_LIBS"
  1328.  
  1329. fi
  1330. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1331.   echo "$ac_t""yes" 1>&6
  1332.   SYSTEM_ZLIB=1 ZLIB_LIBS="-lz $ZLIB_LIBS"
  1333. else
  1334.   echo "$ac_t""no" 1>&6
  1335. SYSTEM_ZLIB= ZLIB_CFLAGS= ZLIB_LIBS=
  1336. fi
  1337.  
  1338. fi
  1339. CFLAGS=$_SAVE_CFLAGS
  1340. LDFLAGS=$_SAVE_LDFLAGS
  1341.  
  1342. if  test -n "${ZLIB_DIR}" && test -d "${ZLIB_DIR}" && test "$SYSTEM_ZLIB" = 1 ; then
  1343.     ZLIB_CFLAGS="-I${ZLIB_DIR}/include"
  1344.     ZLIB_LIBS="-L${ZLIB_DIR}/lib ${ZLIB_LIBS}"
  1345. fi
  1346.  
  1347.  
  1348.  
  1349. echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
  1350. echo "configure:1351: checking for type of signal functions" >&5
  1351. if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
  1352.   echo $ac_n "(cached) $ac_c" 1>&6
  1353. else
  1354.   
  1355.   cat > conftest.$ac_ext <<EOF
  1356. #line 1357 "configure"
  1357. #include "confdefs.h"
  1358. #include <signal.h>
  1359. int main() {
  1360.  
  1361.     sigset_t ss;
  1362.     struct sigaction sa;
  1363.     sigemptyset(&ss); sigsuspend(&ss);
  1364.     sigaction(SIGINT, &sa, (struct sigaction *) 0);
  1365.     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
  1366.   
  1367. ; return 0; }
  1368. EOF
  1369. if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1370.   rm -rf conftest*
  1371.   bash_cv_signal_vintage=posix
  1372. else
  1373.   echo "configure: failed program was:" >&5
  1374.   cat conftest.$ac_ext >&5
  1375.   rm -rf conftest*
  1376.   
  1377.     cat > conftest.$ac_ext <<EOF
  1378. #line 1379 "configure"
  1379. #include "confdefs.h"
  1380. #include <signal.h>
  1381. int main() {
  1382.  
  1383.     int mask = sigmask(SIGINT);
  1384.     sigsetmask(mask); sigblock(mask); sigpause(mask);
  1385.     
  1386. ; return 0; }
  1387. EOF
  1388. if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1389.   rm -rf conftest*
  1390.   bash_cv_signal_vintage=4.2bsd
  1391. else
  1392.   echo "configure: failed program was:" >&5
  1393.   cat conftest.$ac_ext >&5
  1394.   rm -rf conftest*
  1395.   
  1396.       cat > conftest.$ac_ext <<EOF
  1397. #line 1398 "configure"
  1398. #include "confdefs.h"
  1399.  
  1400.     #include <signal.h>
  1401.     RETSIGTYPE foo() { }
  1402. int main() {
  1403.  
  1404.         int mask = sigmask(SIGINT);
  1405.         sigset(SIGINT, foo); sigrelse(SIGINT);
  1406.         sighold(SIGINT); sigpause(SIGINT);
  1407.         
  1408. ; return 0; }
  1409. EOF
  1410. if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1411.   rm -rf conftest*
  1412.   bash_cv_signal_vintage=svr3
  1413. else
  1414.   echo "configure: failed program was:" >&5
  1415.   cat conftest.$ac_ext >&5
  1416.   rm -rf conftest*
  1417.   bash_cv_signal_vintage=v7
  1418.     
  1419. fi
  1420. rm -f conftest*
  1421.   
  1422. fi
  1423. rm -f conftest*
  1424.  
  1425. fi
  1426. rm -f conftest*
  1427.  
  1428. fi
  1429.  
  1430. echo "$ac_t""$bash_cv_signal_vintage" 1>&6
  1431. if test "$bash_cv_signal_vintage" = posix; then
  1432. cat >> confdefs.h <<\EOF
  1433. #define HAVE_POSIX_SIGNALS 1
  1434. EOF
  1435.  
  1436. elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
  1437. cat >> confdefs.h <<\EOF
  1438. #define HAVE_BSD_SIGNALS 1
  1439. EOF
  1440.  
  1441. elif test "$bash_cv_signal_vintage" = svr3; then
  1442. cat >> confdefs.h <<\EOF
  1443. #define HAVE_USG_SIGHOLD 1
  1444. EOF
  1445.  
  1446. fi
  1447.  
  1448.  
  1449.  
  1450. echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
  1451. echo "configure:1452: checking if signal handlers must be reinstalled when invoked" >&5
  1452. if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
  1453.   echo $ac_n "(cached) $ac_c" 1>&6
  1454. else
  1455.   if test "$cross_compiling" = yes; then
  1456.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1457. else
  1458.   cat > conftest.$ac_ext <<EOF
  1459. #line 1460 "configure"
  1460. #include "confdefs.h"
  1461.  
  1462. #include <signal.h>
  1463. #ifdef HAVE_UNISTD_H
  1464. #include <unistd.h>
  1465. #endif
  1466.  
  1467. typedef RETSIGTYPE sigfunc();
  1468.  
  1469. int nsigint;
  1470.  
  1471. #ifdef HAVE_POSIX_SIGNALS
  1472. sigfunc *
  1473. set_signal_handler(sig, handler)
  1474.      int sig;
  1475.      sigfunc *handler;
  1476. {
  1477.   struct sigaction act, oact;
  1478.   act.sa_handler = handler;
  1479.   act.sa_flags = 0;
  1480.   sigemptyset (&act.sa_mask);
  1481.   sigemptyset (&oact.sa_mask);
  1482.   sigaction (sig, &act, &oact);
  1483.   return (oact.sa_handler);
  1484. }
  1485. #else
  1486. #define set_signal_handler(s, h) signal(s, h)
  1487. #endif
  1488.  
  1489. RETSIGTYPE
  1490. sigint(s)
  1491. int s;
  1492. {
  1493.   nsigint++;
  1494. }
  1495.  
  1496. main()
  1497. {
  1498.     nsigint = 0;
  1499.     set_signal_handler(SIGINT, sigint);
  1500.     kill((int)getpid(), SIGINT);
  1501.     kill((int)getpid(), SIGINT);
  1502.     exit(nsigint != 2);
  1503. }
  1504.  
  1505. EOF
  1506. if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1507. then
  1508.   bash_cv_must_reinstall_sighandlers=no
  1509. else
  1510.   echo "configure: failed program was:" >&5
  1511.   cat conftest.$ac_ext >&5
  1512.   rm -fr conftest*
  1513.   bash_cv_must_reinstall_sighandlers=yes
  1514. { echo "configure: error: cannot check signal handling if cross compiling" 1>&2; exit 1; }
  1515. fi
  1516. rm -fr conftest*
  1517. fi
  1518.  
  1519. fi
  1520.  
  1521. echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
  1522. if test $bash_cv_must_reinstall_sighandlers = yes; then
  1523. cat >> confdefs.h <<\EOF
  1524. #define MUST_REINSTALL_SIGHANDLERS 1
  1525. EOF
  1526.  
  1527. fi
  1528.  
  1529.  
  1530. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  1531. echo "configure:1532: checking for getopt_long" >&5
  1532. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  1533.   echo $ac_n "(cached) $ac_c" 1>&6
  1534. else
  1535.   cat > conftest.$ac_ext <<EOF
  1536. #line 1537 "configure"
  1537. #include "confdefs.h"
  1538. /* System header to define __stub macros and hopefully few prototypes,
  1539.     which can conflict with char getopt_long(); below.  */
  1540. #include <assert.h>
  1541. /* Override any gcc2 internal prototype to avoid an error.  */
  1542. /* We use char because int might match the return type of a gcc2
  1543.     builtin and then its argument prototype would still apply.  */
  1544. char getopt_long();
  1545.  
  1546. int main() {
  1547.  
  1548. /* The GNU C library defines this for functions which it implements
  1549.     to always fail with ENOSYS.  Some functions are actually named
  1550.     something starting with __ and the normal name is an alias.  */
  1551. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  1552. choke me
  1553. #else
  1554. getopt_long();
  1555. #endif
  1556.  
  1557. ; return 0; }
  1558. EOF
  1559. if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1560.   rm -rf conftest*
  1561.   eval "ac_cv_func_getopt_long=yes"
  1562. else
  1563.   echo "configure: failed program was:" >&5
  1564.   cat conftest.$ac_ext >&5
  1565.   rm -rf conftest*
  1566.   eval "ac_cv_func_getopt_long=no"
  1567. fi
  1568. rm -f conftest*
  1569. fi
  1570.  
  1571. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  1572.   echo "$ac_t""yes" 1>&6
  1573.   :
  1574. else
  1575.   echo "$ac_t""no" 1>&6
  1576. LIBOBJS="$LIBOBJS getopt1.o getopt.o"
  1577. fi
  1578.  
  1579. echo $ac_n "checking for strerror""... $ac_c" 1>&6
  1580. echo "configure:1581: checking for strerror" >&5
  1581. if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
  1582.   echo $ac_n "(cached) $ac_c" 1>&6
  1583. else
  1584.   cat > conftest.$ac_ext <<EOF
  1585. #line 1586 "configure"
  1586. #include "confdefs.h"
  1587. /* System header to define __stub macros and hopefully few prototypes,
  1588.     which can conflict with char strerror(); below.  */
  1589. #include <assert.h>
  1590. /* Override any gcc2 internal prototype to avoid an error.  */
  1591. /* We use char because int might match the return type of a gcc2
  1592.     builtin and then its argument prototype would still apply.  */
  1593. char strerror();
  1594.  
  1595. int main() {
  1596.  
  1597. /* The GNU C library defines this for functions which it implements
  1598.     to always fail with ENOSYS.  Some functions are actually named
  1599.     something starting with __ and the normal name is an alias.  */
  1600. #if defined (__stub_strerror) || defined (__stub___strerror)
  1601. choke me
  1602. #else
  1603. strerror();
  1604. #endif
  1605.  
  1606. ; return 0; }
  1607. EOF
  1608. if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1609.   rm -rf conftest*
  1610.   eval "ac_cv_func_strerror=yes"
  1611. else
  1612.   echo "configure: failed program was:" >&5
  1613.   cat conftest.$ac_ext >&5
  1614.   rm -rf conftest*
  1615.   eval "ac_cv_func_strerror=no"
  1616. fi
  1617. rm -f conftest*
  1618. fi
  1619.  
  1620. if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
  1621.   echo "$ac_t""yes" 1>&6
  1622.   :
  1623. else
  1624.   echo "$ac_t""no" 1>&6
  1625. LIBOBJS="$LIBOBJS strerror.o"
  1626. fi
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633. trap '' 1 2 15
  1634. cat > confcache <<\EOF
  1635. # This file is a shell script that caches the results of configure
  1636. # tests run on this system so they can be shared between configure
  1637. # scripts and configure runs.  It is not useful on other systems.
  1638. # If it contains results you don't want to keep, you may remove or edit it.
  1639. #
  1640. # By default, configure uses ./config.cache as the cache file,
  1641. # creating it if it does not exist already.  You can give configure
  1642. # the --cache-file=FILE option to use a different cache file; that is
  1643. # what configure does when it calls configure scripts in
  1644. # subdirectories, so they share the cache.
  1645. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1646. # config.status only pays attention to the cache file if you give it the
  1647. # --recheck option to rerun configure.
  1648. #
  1649. EOF
  1650. # The following way of writing the cache mishandles newlines in values,
  1651. # but we know of no workaround that is simple, portable, and efficient.
  1652. # So, don't put newlines in cache variables' values.
  1653. # Ultrix sh set writes to stderr and can't be redirected directly,
  1654. # and sets the high bit in the cache file unless we assign to the vars.
  1655. (set) 2>&1 |
  1656.   case `(ac_space=' '; set) 2>&1` in
  1657.   *ac_space=\ *)
  1658.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1659.     # turns \\\\ into \\, and sed turns \\ into \).
  1660.     sed -n \
  1661.       -e "s/'/'\\\\''/g" \
  1662.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1663.     ;;
  1664.   *)
  1665.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1666.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1667.     ;;
  1668.   esac >> confcache
  1669. if cmp -s $cache_file confcache; then
  1670.   :
  1671. else
  1672.   if test -w $cache_file; then
  1673.     echo "updating cache $cache_file"
  1674.     cat confcache > $cache_file
  1675.   else
  1676.     echo "not updating unwritable cache $cache_file"
  1677.   fi
  1678. fi
  1679. rm -f confcache
  1680.  
  1681. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1682.  
  1683. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1684. # Let make expand exec_prefix.
  1685. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1686.  
  1687. # Any assignment to VPATH causes Sun make to only execute
  1688. # the first set of double-colon rules, so remove it if not needed.
  1689. # If there is a colon in the path, we need to keep it.
  1690. if test "x$srcdir" = x.; then
  1691.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1692. fi
  1693.  
  1694. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1695.  
  1696. DEFS=-DHAVE_CONFIG_H
  1697.  
  1698. # Without the "./", some shells look in PATH for config.status.
  1699. : ${CONFIG_STATUS=./config.status}
  1700.  
  1701. echo creating $CONFIG_STATUS
  1702. rm -f $CONFIG_STATUS
  1703. cat > $CONFIG_STATUS <<EOF
  1704. #! /bin/sh
  1705. # Generated automatically by configure.
  1706. # Run this file to recreate the current configuration.
  1707. # This directory was configured as follows,
  1708. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1709. #
  1710. # $0 $ac_configure_args
  1711. #
  1712. # Compiler output produced by configure, useful for debugging
  1713. # configure, is in ./config.log if it exists.
  1714.  
  1715. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1716. for ac_option
  1717. do
  1718.   case "\$ac_option" in
  1719.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1720.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1721.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1722.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1723.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1724.     exit 0 ;;
  1725.   -help | --help | --hel | --he | --h)
  1726.     echo "\$ac_cs_usage"; exit 0 ;;
  1727.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1728.   esac
  1729. done
  1730.  
  1731. ac_given_srcdir=$srcdir
  1732. ac_given_INSTALL="$INSTALL"
  1733.  
  1734. trap 'rm -fr `echo "Makefile oledecod/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1735. EOF
  1736. cat >> $CONFIG_STATUS <<EOF
  1737.  
  1738. # Protect against being on the right side of a sed subst in config.status.
  1739. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1740.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1741. $ac_vpsub
  1742. $extrasub
  1743. s%@CFLAGS@%$CFLAGS%g
  1744. s%@CPPFLAGS@%$CPPFLAGS%g
  1745. s%@CXXFLAGS@%$CXXFLAGS%g
  1746. s%@DEFS@%$DEFS%g
  1747. s%@LDFLAGS@%$LDFLAGS%g
  1748. s%@LIBS@%$LIBS%g
  1749. s%@exec_prefix@%$exec_prefix%g
  1750. s%@prefix@%$prefix%g
  1751. s%@program_transform_name@%$program_transform_name%g
  1752. s%@bindir@%$bindir%g
  1753. s%@sbindir@%$sbindir%g
  1754. s%@libexecdir@%$libexecdir%g
  1755. s%@datadir@%$datadir%g
  1756. s%@sysconfdir@%$sysconfdir%g
  1757. s%@sharedstatedir@%$sharedstatedir%g
  1758. s%@localstatedir@%$localstatedir%g
  1759. s%@libdir@%$libdir%g
  1760. s%@includedir@%$includedir%g
  1761. s%@oldincludedir@%$oldincludedir%g
  1762. s%@infodir@%$infodir%g
  1763. s%@mandir@%$mandir%g
  1764. s%@CC@%$CC%g
  1765. s%@SET_MAKE@%$SET_MAKE%g
  1766. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1767. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1768. s%@CPP@%$CPP%g
  1769. s%@LIBOBJS@%$LIBOBJS%g
  1770. s%@ZLIB_CFLAGS@%$ZLIB_CFLAGS%g
  1771. s%@ZLIB_LIBS@%$ZLIB_LIBS%g
  1772.  
  1773. CEOF
  1774. EOF
  1775.  
  1776. cat >> $CONFIG_STATUS <<\EOF
  1777.  
  1778. # Split the substitutions into bite-sized pieces for seds with
  1779. # small command number limits, like on Digital OSF/1 and HP-UX.
  1780. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1781. ac_file=1 # Number of current file.
  1782. ac_beg=1 # First line for current file.
  1783. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1784. ac_more_lines=:
  1785. ac_sed_cmds=""
  1786. while $ac_more_lines; do
  1787.   if test $ac_beg -gt 1; then
  1788.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1789.   else
  1790.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1791.   fi
  1792.   if test ! -s conftest.s$ac_file; then
  1793.     ac_more_lines=false
  1794.     rm -f conftest.s$ac_file
  1795.   else
  1796.     if test -z "$ac_sed_cmds"; then
  1797.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1798.     else
  1799.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1800.     fi
  1801.     ac_file=`expr $ac_file + 1`
  1802.     ac_beg=$ac_end
  1803.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1804.   fi
  1805. done
  1806. if test -z "$ac_sed_cmds"; then
  1807.   ac_sed_cmds=cat
  1808. fi
  1809. EOF
  1810.  
  1811. cat >> $CONFIG_STATUS <<EOF
  1812.  
  1813. CONFIG_FILES=\${CONFIG_FILES-"Makefile oledecod/Makefile"}
  1814. EOF
  1815. cat >> $CONFIG_STATUS <<\EOF
  1816. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1817.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1818.   case "$ac_file" in
  1819.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1820.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1821.   *) ac_file_in="${ac_file}.in" ;;
  1822.   esac
  1823.  
  1824.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1825.  
  1826.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1827.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1828.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1829.     # The file is in a subdirectory.
  1830.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1831.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1832.     # A "../" for each directory in $ac_dir_suffix.
  1833.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1834.   else
  1835.     ac_dir_suffix= ac_dots=
  1836.   fi
  1837.  
  1838.   case "$ac_given_srcdir" in
  1839.   .)  srcdir=.
  1840.       if test -z "$ac_dots"; then top_srcdir=.
  1841.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1842.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1843.   *) # Relative path.
  1844.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1845.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1846.   esac
  1847.  
  1848.   case "$ac_given_INSTALL" in
  1849.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1850.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1851.   esac
  1852.  
  1853.   echo creating "$ac_file"
  1854.   rm -f "$ac_file"
  1855.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1856.   case "$ac_file" in
  1857.   *Makefile*) ac_comsub="1i\\
  1858. # $configure_input" ;;
  1859.   *) ac_comsub= ;;
  1860.   esac
  1861.  
  1862.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1863.   sed -e "$ac_comsub
  1864. s%@configure_input@%$configure_input%g
  1865. s%@srcdir@%$srcdir%g
  1866. s%@top_srcdir@%$top_srcdir%g
  1867. s%@INSTALL@%$INSTALL%g
  1868. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1869. fi; done
  1870. rm -f conftest.s*
  1871.  
  1872. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1873. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1874. #
  1875. # ac_d sets the value in "#define NAME VALUE" lines.
  1876. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1877. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1878. ac_dC='\3'
  1879. ac_dD='%g'
  1880. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1881. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1882. ac_uB='\([     ]\)%\1#\2define\3'
  1883. ac_uC=' '
  1884. ac_uD='\4%g'
  1885. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1886. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1887. ac_eB='$%\1#\2define\3'
  1888. ac_eC=' '
  1889. ac_eD='%g'
  1890.  
  1891. if test "${CONFIG_HEADERS+set}" != set; then
  1892. EOF
  1893. cat >> $CONFIG_STATUS <<EOF
  1894.   CONFIG_HEADERS="config.h"
  1895. EOF
  1896. cat >> $CONFIG_STATUS <<\EOF
  1897. fi
  1898. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1899.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1900.   case "$ac_file" in
  1901.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1902.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1903.   *) ac_file_in="${ac_file}.in" ;;
  1904.   esac
  1905.  
  1906.   echo creating $ac_file
  1907.  
  1908.   rm -f conftest.frag conftest.in conftest.out
  1909.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1910.   cat $ac_file_inputs > conftest.in
  1911.  
  1912. EOF
  1913.  
  1914. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1915. # the proper values into config.h.in to produce config.h.  And first:
  1916. # Protect against being on the right side of a sed subst in config.status.
  1917. # Protect against being in an unquoted here document in config.status.
  1918. rm -f conftest.vals
  1919. cat > conftest.hdr <<\EOF
  1920. s/[\\&%]/\\&/g
  1921. s%[\\$`]%\\&%g
  1922. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1923. s%ac_d%ac_u%gp
  1924. s%ac_u%ac_e%gp
  1925. EOF
  1926. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1927. rm -f conftest.hdr
  1928.  
  1929. # This sed command replaces #undef with comments.  This is necessary, for
  1930. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1931. # on some systems where configure will not decide to define it.
  1932. cat >> conftest.vals <<\EOF
  1933. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1934. EOF
  1935.  
  1936. # Break up conftest.vals because some shells have a limit on
  1937. # the size of here documents, and old seds have small limits too.
  1938.  
  1939. rm -f conftest.tail
  1940. while :
  1941. do
  1942.   ac_lines=`grep -c . conftest.vals`
  1943.   # grep -c gives empty output for an empty file on some AIX systems.
  1944.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1945.   # Write a limited-size here document to conftest.frag.
  1946.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1947.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1948.   echo 'CEOF
  1949.   sed -f conftest.frag conftest.in > conftest.out
  1950.   rm -f conftest.in
  1951.   mv conftest.out conftest.in
  1952. ' >> $CONFIG_STATUS
  1953.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1954.   rm -f conftest.vals
  1955.   mv conftest.tail conftest.vals
  1956. done
  1957. rm -f conftest.vals
  1958.  
  1959. cat >> $CONFIG_STATUS <<\EOF
  1960.   rm -f conftest.frag conftest.h
  1961.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1962.   cat conftest.in >> conftest.h
  1963.   rm -f conftest.in
  1964.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1965.     echo "$ac_file is unchanged"
  1966.     rm -f conftest.h
  1967.   else
  1968.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1969.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1970.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1971.       # The file is in a subdirectory.
  1972.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1973.     fi
  1974.     rm -f $ac_file
  1975.     mv conftest.h $ac_file
  1976.   fi
  1977. fi; done
  1978.  
  1979. EOF
  1980. cat >> $CONFIG_STATUS <<EOF
  1981.  
  1982. EOF
  1983. cat >> $CONFIG_STATUS <<\EOF
  1984.  
  1985. exit 0
  1986. EOF
  1987. chmod +x $CONFIG_STATUS
  1988. rm -fr confdefs* $ac_clean_files
  1989. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1990.  
  1991.